package com.weike.yuanding.config;

/**
 * @ClassName: MvcConfig
 * @Author: YuanDing
 * @Date: 2025/4/3 23:23
 * @Description:
 */

import com.weike.yuanding.intercepter.UserIdInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MvcConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new UserIdInterceptor());
    }
}
